package com.neusoft.neuiotms.dcam.workflow.vo;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ArrivalExpectQuantityImportVO implements IExcelDataModel, IExcelModel {

    @Excel(name = "合同ID", isColumnHidden = true)
    private String contractCode;

    @Excel(name = "合同项ID", isColumnHidden = true)
    private Long contractItemId;

    @NotBlank(message = "资产类型不能为空")
    @Length(max = 255, message = "资产类型不能超过{max}位")
    @Excel(name = "资产类型")
    private String assetTypeName;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String productName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String standard;

    /** 单价 */
    @Excel(name = "单价")
    private Double amount;

    /** 合同数量 */
    @Excel(name = "合同数量")
    private int count;

    /** 已验收数量 */
    @Excel(name = "已验收数量")
    private int acceptedCount;

    /** 本次验收数量 */
    @Excel(name = "本次验收数量")
    private int crCount;

    private int rowNum;

    private String errorMsg;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
